package demo.dao.jpa;

import demo.entity.UploadedFile;
import demo.entity.User;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.CascadeType;



/**
 * User
 */
@Entity
@Table(name="user")
public class JpaUser implements User {
    private static final long serialVersionUID = 1L;



    /** The username of the user */
    @Id
    @Basic
    private String username;

    /** 
     * Get Username.
     *  
     * @return the username
     */
    public String getUsername() {
       return this.username;
    }

    /**
     * Set Username
     *
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }



    /** The password of the user */
    @Basic
    private String password;

    /** 
     * Get Password.
     *  
     * @return the password
     */
    public String getPassword() {
       return this.password;
    }

    /**
     * Set Password
     *
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }



    public String primaryKey() {
        return getUsername();
    }
    
    @Override
    public String toString() {
        return primaryKey();
    }
}// clickframes::version=2001436373::clickframes